import lejos.nxt.LCD;

public class Screen extends Thread {
	private String name;
	private int LCDrow;

	public Screen(String gName, int row) {
		this.name = gName;
		this.LCDrow = row;
		this.setDaemon(true);
	}

	// Access to LCD
	public void reportState()
	{
		LCD.drawString(name, 0, LCDrow);
    		//LCD.drawInt(isSuppressed()?1:0, name.length()+1, LCDrow);
    		LCD.refresh();  
    	}

	public void drawInt(int i)
	{
		LCD.drawInt(i,3,name.length()+3, LCDrow);
		LCD.refresh();
	}

	public void drawString(String s)
	{
		LCD.drawString(s,name.length()+3, LCDrow);
		LCD.refresh();
	}
    
	public void delay(int time)
	{
		try 
        	{
            		Thread.sleep(time);
        	}
        	catch (Exception e)
        	{
			
        	}
	}
	
    	// Override the run method to define the actual behavior
	public void run()
	{
		
	}
}
